package com.hqyj.exception;

import lombok.Data;
import lombok.Getter;

/**
 * 状态码维护
 */

public enum CodeEnum {

    SUCCESS(200,"成功"),
    ERROR(500,"错误"),
    ERROR_SYS(501,"系统错误"),
    ERROR_PARAM(300,"参数校验错误"),
    ERROR_TOKEN_NULL(302,"token空"),
    ERROR_TOKEN_TIMEOUT(303,"token超时"),
    ERROR_TOKEN_INVALID(304,"token无效"),
    ;

    //验证码
    public final int CODE;
    //验证码说明
    public final String MSG;

    CodeEnum(int code,String msg) {
        this.CODE = code;
        this.MSG =msg;
    }
}
